import * as PIXI from 'pixi.js'
import useDiyStore from '@renderer/store/modules/useDiyStore'
import useMagic from '@renderer/store/modules/useMagicStore'
import { setPixi } from '@renderer/store/modules/usePixiStore'
export default (): PIXI.Container<PIXI.ContainerChild> => {
  const diyStore = useDiyStore()
  const container = new PIXI.Container()
  // 攻击
  const text = new PIXI.Text({
    text: '',
    style: {
      fontFamily: 'RZFont',
      fontSize: 45,
      fill: 0xffffff,
      align: 'center',
      stroke: {
        color: 0x000000,
        width: 4,
      },
    },
  })
  text.anchor.set(0.5)
  container.addChild(text)
  container.position.set(-useMagic().PICTURE_SCOPE / 2 + 4, 268 - 506 / 2 + 58 / 2)
  setPixi(text.uid, text)
  diyStore.setUidMap('atk', text.uid)
  return container
}
